﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebClient
{
    public partial class Album : System.Web.UI.Page
    {
        private DBLibrary.Customer customer = new DBLibrary.Customer();

        protected void Page_Load(object sender, EventArgs e)
        {
            // Get the IdAlbum parameter given in the URL
            //
            String id = Request.QueryString["idAlbum"];

            // Ensure that the parameter is not null
            //
            if (id != null)
            {
                int idAlbum = Convert.ToInt32(id);
                if (idAlbum == 0) return;

                // Get a list of the images' ID in the album
                //
                imagesID = customer.getImageIdByAlbum(idAlbum);
            }
        }
    }
}